package com.liuwei.msmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liuwei.msmall.common.dto.SkuInfoWithSaleAttrDTO;
import com.liuwei.msmall.common.utils.PageUtils;
import com.liuwei.msmall.product.entity.SkuInfoEntity;
import com.liuwei.msmall.product.vo.SkuItemVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author llww
 * @email 2456888577@qq.com
 * @date 2021-02-25 17:45:01
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;

    SkuInfoWithSaleAttrDTO getSkuInfoWithSaleAttr(Long skuId);

}

